﻿<%@ Page Language="C#" Inherits="TopWinCMS.WebFactory.ArticleShow" EnableSessionState="false"
    EnableViewState="false" %>

<!doctype html>
<html>
<head>
    <title><%=model.ContentTitle %> -- {SiteName}</title>
    <meta charset="utf-8" />
    <%: Styles.Render("~/Templates/TopWinCMS6/Style/Article.css") %>

    <!--[if lt IE 9]><script src="{SysPath}/Scripts/html5shiv.js"></script><![endif]-->
    <%: Scripts.Render("~/Script/ContetnPage") %>
    <script type="text/javascript"> 
        var ModelID =<%=ClassInfo.ModelID %>;
        var ContentID = <%=model.ID %>;
        var PageNo = <%=PageNo %>;
    </script>
</head>
<body>
    <!--#include file="../Shared/Header.aspx"-->

    <div class="wherePath">[Path] → <%=model.ContentTitle %></div>
    <div class="mainDiv">
        <div class="Left">
            <section class="div_ListBox">
                <header class="tab">
                    <h2 class="active">栏目周榜</h2>
                    <h2>栏目月榜</h2>
                </header>
                <div class="Content">
                    <ul>
                        <TW:HotContents ID="HotContents1" runat="server" Rows="10" Type="Week">
                            <ItemTemplate>
                                <li><a href="<%# Eval("Link") %>" title="<%# Eval("ContentTitle") %>"><%# Eval("ContentTitle") %></a></li>
                            </ItemTemplate>
                            <EmptyDataTemplate>
                                <li>没有文章</li>
                            </EmptyDataTemplate>
                        </TW:HotContents>
                    </ul>
                </div>
                <div class="Content" style="display: none">
                    <ul>
                        <TW:HotContents ID="HotContents2" runat="server" Rows="10" Type="Month">
                            <ItemTemplate>
                                <li><a href="<%# Eval("Link") %>" title="<%# Eval("ContentTitle") %>"><%# Eval("ContentTitle") %></a></li>
                            </ItemTemplate>
                            <EmptyDataTemplate>
                                <li>没有数据</li>
                            </EmptyDataTemplate>
                        </TW:HotContents>
                    </ul>
                </div>
            </section>
            <section class="div_ListBox">
                <header>
                    <h2>相关文章</h2>
                </header>
                <div class="Content">
                    <ul>
                        <TW:RelatedContents runat="server" Rows="10">
                            <ItemTemplate>
                                <li><a href="<%# Eval("Link") %>" title="<%# Eval("ContentTitle") %>"><%# Eval("ContentTitle") %></a></li>
                            </ItemTemplate>
                            <EmptyDataTemplate>
                                <li>没有数据</li>
                            </EmptyDataTemplate>
                        </TW:RelatedContents>
                    </ul>
                </div>
            </section>
            <section class="div_ListBox">
                <header>
                    <h2>Tags(标签)</h2>
                </header>
                <div class="Content">
                    <ul>
                        <TW:ContentTags>
            <ItemTemplate>
                      <li><a href="{SysPath}/Tags/TagsList.aspx?ModelID=[ModelID]&ID=@ID@&PageNo=1" target="_blank">@TagName@</a></li>
                    </ItemTemplate>
          </TW:ContentTags>
                       <%-- <TW:DataBox runat="server" DataSource="<%# new TopWinCMS.BLL.Public_Tags().ContentTags(ClassInfo.ModelID, model.Tags) %>">
                            <ItemTemplate>
                                <li><a href="/Tags/TagsList.aspx?ModelID=<%#ClassInfo.ModelID %>&ID=<%#model.ID %>&PageNo=1" target="_blank"><%# Eval("TagName") %></a></li>
                            </ItemTemplate>
                        </TW:DataBox>--%>
                    </ul>
                </div>
            </section>
        </div>
        <div class="Right">
            <div class="ArticleInfo">
                <TW:Context>
                  <h1 class="ArticleTitle"><%=model.ContentTitle %></h1>
                  <div style="text-align: right;">
                      ［作者：<%=model.Author %>&nbsp;&nbsp;&nbsp;&nbsp;转贴自：<%=model.ComeFrom %>&nbsp;&nbsp;&nbsp;&nbsp;点击数：<span
                          id="ContentHits"></span>&nbsp;&nbsp;&nbsp; 更新时间：
            <time><%=model.UpdateTime %></time>
                      ］
</div>
                  <div class="ArticleTitle1"><%=model.Title1 %></div>
                  <article class="ArticleContent">@Content@</article>
                  @Page@
      </TW:Context>
                <TW:annex>
                    <div style="margin: 0px 20px 10px 10px;">
                        <br />
                        <strong>附件：</strong><br />
                        <itemtemplate> <a href="@FileName@" target="_blank">@DownURL@</a><br />
          </itemtemplate>
                    </div>
                </TW:annex>
                <div id="Digo">
                    <div id="div_goodnum">
                        <span id="goodnum">0</span>
                        <br />
                        票<br />
                        顶一下
                    </div>
                    <div id="div_badnum">
                        <span id="badnum">0</span>
                        <br />
                        票<br />
                        踩一下
                    </div>
                </div>
                <div style="height: 50px;">
                    <div style="float: left">
                        上一篇：@UP@<br />
                        下一篇：@Down@
                    </div>
                    <div style="float: right; text-align: right"><a href="javascript:window.print()">
                        <img src="{SysPath}/Images/print.gif" style="vertical-align: middle" alt="" />
                        打印本页</a> <a href="javascript:window.close()">
                            <img src="{SysPath}/Images/pageclose.gif" style="vertical-align: middle" alt="" />
                            关闭窗口</a></div>
                </div>
                <table border="0" cellspacing="1" cellpadding="3" class="CommentShow">
                    <thead>
                        <tr>
                            <th width="12%" align="center">网友</th>
                            <th align="center">评论内容（<a href="{SysPath}/Comment/List?ClassID=<%=model.ClassID %>&ContentID=<%=model.ID %>"
                                target="_blank">共
                            <%=model.CommentQuantity%>
                            条，查看完整内容</a>）
                            </th>
                            <th width="13%" align="center">发表时间
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <TW:NewComments runat="server" Rows="10">
                            <ItemTemplate>
                                <tr>
                                    <td align="center">@UserName@</td>
                                    <td>@Content@</td>
                                    <td align="center">@CreateTime@</td>
                                </tr>
                            </ItemTemplate>
                            <EmptyDataTemplate>
                                <tr>
                                    <td colspan="3">没有评论</td>
                                </tr>
                            </EmptyDataTemplate>
                        </TW:NewComments>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <!--#include file="../Footer.aspx"-->
</body>
</html>
